<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在box元素中动态创建无序列表，自定义列表项内容。</title>
</head>
<body>
    <div class="box" id="box">

    </div>
</body>
<script>
    var box = document.getElementById("box");
    var ul = document.createElement("ul")
    for (var i = 0 ; i < 9 ; i++) {
        var li = document.createElement("li");
        li.innerText = i + " wuuu~~~lalala~bu~ba";
        ul.appendChild(li);
    }
    box.appendChild(ul);
</script>
</html>